package day3;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class Study {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        System.out.println("上午学习理论\n下午上机");
        System.out.println("请岳不群检查:");
        String answer=in.next();
        while (!(answer.equals("合格")||answer.equals("yes"))){
            System.out.println("上午学习理论\n下午上机");
            System.out.println("请岳不群检查:");
            answer=in.next();
        }
        System.out.println("合格了，令狐冲出去浪");
//        if(!(answer.equals("合格")||answer.equals("yes"))){
//            System.out.println("上午学习理论\n下午上机");
//            System.out.println("请岳不群检查:");
//            answer=in.next();
//            if(!(answer.equals("合格")||answer.equals("yes"))){
//                System.out.println("上午学习理论\n下午上机");
//                System.out.println("请岳不群检查:");
//                answer=in.next();
//
//            }
//        }
    }
}
